<include file="Public/min-header" />
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content" style="padding:0px 15px;">
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-body ">
                    <ul class="nav nav-tabs">
                        <foreach name="groupList" item="vo" key="k">
                            <li <if condition="$k eq 'basic'">class="active"</if>><a href="javascript:;" data-url="{:U('System/index',array('inc_type'=>$k))}" data-toggle="tab" onclick="goset(this)">{$vo}</a></li>
                        </foreach>
                    </ul>
                    <form method="post" id="handlepost" action="{:U('System/handle')}">

                        <div class="tab-content" style="padding:20px 0px;">
                            <div class="tab-pane active" id="tab_tongyong">
                                <table class="table table-bordered">
                                    <tbody>

                                        <tr>
                                            <td class = "align-right">首页热门搜索词：</td>
                                            <td colspan="2">
                                                <input type="text" class="form-control" name="hot_keywords" value="{$config.hot_keywords}">
                                                <p class="text-warning txt-info">多个热门搜索关键词请用竖线|分开，如(手机|电脑)</p>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td class = "align-right">过期不响应分配给：</td>
                                            <td>
                                                <select name="accountant_head" class="form-control">
                                                <volist name="accountant_list" id="vo">
                                                    <option value="{$vo.au_id}" <if condition="$vo[au_id] eq $config[accountant_head]">selected</if>>{$vo.username}[{$vo.mobile}]</option>
                                                </volist>
                                                </select>
                                            </td>
                                            <td></td>
                                        </tr>

                                        <tr>
                                            <td class = "align-right">悬赏金额：</td>
                                            <td>
                                                <input type="text"  title="悬赏金额" class="form-control" name="reward_str" value="{$config.reward_str}">
                                            </td>
                                            <td>使用英文状态下的逗号分割，单位元</td>
                                        </tr>

                                        <tr>
                                            <td class = "align-right">打赏金额：</td>
                                            <td>
                                                <input type="text"  title="打赏金额" class="form-control" name="bonus_str" value="{$config.bonus_str}">
                                            </td>
                                            <td>使用英文状态下的逗号分割，单位元</td>
                                        </tr>

                                        <tr>
                                            <td class = "align-right">一般回答时间：</td>
                                            <td>
                                                <input type="text"  title="一般回答时间" class="input-sm" name="normal_hour" value="{$config.normal_hour}">
                                            </td>
                                            <td>单位：小时</td>
                                        </tr>

                                        <tr>
                                            <td class = "align-right">悬赏回答时间：</td>
                                            <td>
                                                <input type="text"  title="悬赏回答时间" class="input-sm" name="speed_hour" value="{$config.speed_hour}">
                                            </td>
                                            <td>单位：小时</td>
                                        </tr>

                                        <!--<tr>-->
                                            <!--<td class = "align-right">会计收入分成：</td>-->
                                            <!--<td>-->
                                                <!--<input type="text"  title="会计收入分成" class="input-sm" name="accountant_rates" value="{$config.accountant_rate}">%-->
                                            <!--</td>-->
                                            <!--<td></td>-->
                                        <!--</tr>-->

                                        <!--<tr>-->
                                            <!--<td class = "align-right">平台收入分成：</td>-->
                                            <!--<td>-->
                                                <!--<input type="text"  title="平台收入分成" class="input-sm" name="platform_rate" value="{$config.platform_rate}">%-->
                                            <!--</td>-->
                                            <!--<td></td>-->
                                        <!--</tr>-->

                                        <tr>
                                            <td class = "align-right">年费金额：</td>
                                            <td>
                                                <input type="text"  title="年费金额" class="input-sm" name="year_money" value="{$config.year_money}">
                                            </td>
                                            <td>单位：元/年</td>
                                        </tr>

                                        <tr>
                                            <td class = "align-right">试用期月份数：</td>
                                            <td>
                                                <input type="text"  title="试用期月份" class="input-sm" name="test_month" value="{$config.test_month}">
                                            </td>
                                            <td>填入多少个月</td>
                                        </tr>

                                        <tr>
                                            <td class = "align-right">满期提示天数：</td>
                                            <td>
                                                <input type="text"  title="满期提示天数" class="input-sm" name="prompt_day" value="{$config.prompt_day}">
                                            </td>
                                            <td>填入多少天</td>
                                        </tr>

                                    </tbody>
                                    <tfoot>
                                        <tr>
                                            <td>
                                                <input type="hidden" name="inc_type" value="{$inc_type}">
                                            </td>
                                            <td></td>
                                            <td class="text-right">
                                                <input class="btn btn-primary" type="button" onclick="adsubmit()" value="保存">
                                            </td>
                                        </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    function adsubmit() {
        $('#handlepost').submit();
    }

    $(document).ready(function () {
        get_province();
    });

    function goset(obj) {
        window.location.href = $(obj).attr('data-url');
    }
</script>
</body>

</html>
